#include <iostream>
using namespace std;  
int main()  
{          
	int number=1;
	int count1;
	int count2;

	for(count1=1;count1<11;count1++)
	{
		for(count2=1;count2<=count1;count2++)
		{
			number*=count2;
		}
		cout<<count1<<"!"<<" = "<<number<<"\n";
		number=1;
	}
		return 0;
} 